// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import { post, get, upload } from './request/request'
import Vant, { Lazyload, Notify, Dialog, Toast } from 'vant'
Vue.use(Vant)
Vue.use(Lazyload)
Vue.prototype.$post = post
Vue.prototype.$get = get
Vue.config.productionTip = false
Vue.prototype.$Dialog = Dialog
Vue.prototype.$Notify = Notify
Vue.prototype.$Toast = Toast
Vue.prototype.$upload = upload

//导入css
import 'vant/lib/index.css'


//开启vue调试功能
Vue.config.devtools=true;

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})